<div class="breadcrumbs" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="home-icon fa fa-home"></i>
            <a href="#">投票</a>
        </li>
        <li>
            <a href="#">投票管理</a>
        </li>
        <li class="active">投票列表</li>
    </ul>
</div>
<div class="content">
    <form name='admin_list' method='post' action='{url:/vote/vote_delete}'>
        <table class="table list-table">
            <colgroup>
                <col width="10px"/>
                <col width="150px"/>
                <col width="100px"/>
                <col width="200px"/>
                <col/>
            </colgroup>
            <caption>
                <a class="btn btn-default" href='{url:/vote/vote_add}'>
                    <i class="fa fa-plus"></i> 添加投票
                </a>
                <a class="btn btn-default" onclick="selectAll('id[]');">
                    <i class="fa fa-check"></i>全选
                </a>
                <a class="btn btn-default" onclick="delModel({msg:'是否把投票信息放到回收站内？'});">
                    <i class="fa fa-close"></i>批量删除
                </a>
                <a class="btn btn-default" href='#'>
                    <i class="fa fa-trash"></i>回收站
                </a>
            </caption>
            <thead>
            <tr>
                <th></th>
                <th style="width: 50px">ID</th>
                <th style="width: 250px">问卷标题</th>
                <th>起始日期 - 截止日期</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>

            <tbody>
            {foreach:items=$this->voteData}
            <tr>
                <td><input type='checkbox' name='id[]' value='{$item['id']}' /></td>
                <td>{$item['id']}</td>
                <td>{$item['vote_title']}</td>
                <td>{$item['start_date']} - {$item['end_date']}</td>
                <td>
                    {if:$item['vote_status'] == 0}
                    未开始
                    {elseif:$item['vote_status'] == 1}
                    进行中
                    {elseif:$item['vote_status'] == 2}
                    已结束
                    {/if}
                </td>
                <td>
                    <a href='{url:/vote/question/vote_id/$item['id']}' title="题目管理"><i class='operator fa fa-list-alt'></i></a>
                    <a href='{url:/vote/vote_edit/id/$item['id']}'><i class='operator fa fa-edit'></i></a>
                    <a href="javascript:void(0);" onclick="delModel({link:'{url:/vote/vote_delete/id/$item['id']}',msg:'是否把投票信息删除？'});"><i class='operator fa fa-close'></i></a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </form>
</div>
{if:$this->voteObj}
{$this->voteObj->getPageBar()}
{/if}